export default function(data){
  const checks = document.querySelectorAll(".check")
  checks.forEach(val=>{
    if(val.checked){
      val.parentNode.parentNode.remove();
    }
  })
  data = data.filter(val=>!val.check)
  localStorage.setItem("cartData", JSON.stringify(data))
  return data;
}